# 基于java8
FROM java:8

# 拷贝项目
COPY *.jar /Micro_Service_Gateway.jar

CMD ["--server.port=9000"]

# 暴露端口
EXPOSE 9000

# 执行命令
ENTRYPOINT ["java" , "-jar" , "Micro_Service_Gateway.jar"]


# linux运行命令
# 1. docker build -t micro_service_gateway .
# 2. docker run -d -p 9000:9000 --name My_Micro_Service_Gateway micro_service_gateway
